test(src): kvalitetssikre landvisning og brukervalg med automatiske tester #26
+911
−43
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Sett opp testdekning for CountryCard, CountryMenu, CountryNavigation og FavoriteButton med normale og mangelfulle data, samt brukerinteraksjon
Legg til en snapshot-test av FavoriteButton
Test favoritter og gjenoppretting fra localStorage, samt sortering og gjenoppretting fra sessionStorage
Test fetchCountries sin feilhåndtering og feltmapping med mockede API-svar
Legg til App-integrasjonstester for lasting, HTTP-feil, nytt forsøk, tomt resultat og favorittfilterets grensetilfeller
Fjern Vitests ytelsesadvarsel om gjenskaping av jsdom-miljøet
Dokumenter automatisk testdekning i README, og manuell test på iPhone 13 Pro og iPad 11 i Safari
Closes #13
Co-Authored-By: Birk birkjr@stud.ntnu.no